<template>
  <div>
    <div class="link" @click="nav">
      {{ link }}
    </div>
  </div>
</template>

<script>
export default {
  name: "MyLink",
  props: {
    link: String
  },
  methods: {
    nav() {
      this.$parent.link(this.link);
    }
  }
}
</script>

<style scoped>
.link {
  color: yellow;
  margin-right: 1em;
}

</style>
